package com.smedi.ismedi.constructionproject.core.domain.aggregatemodel;

import cn.hutool.core.date.DateTime;
import com.smedi.ismedi.constructionproject.api.dto.response.ProcessTaskResponse;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @Author: xulinjun
 * @Date: 2021-6-18 15:22
 */
@Data
@Accessors(chain = true)
public class ProjectApply extends BasicField implements Serializable {
    private Long id;

    private ProjectBasic project;

    private Person applyPerson;

    @ApiModelProperty(value = "最近处理人员")
    private Person currentDealPerson;

    @ApiModelProperty(value = "申请原因")
    private String applyReason;

    @ApiModelProperty(value = "申请类型")
    private String applyType;

    @ApiModelProperty(value = "申请状态")
    private String applyStatus;

    @ApiModelProperty(value = "任务状态")
    private String taskStatus;

    @ApiModelProperty(value = "任务key")
    private String taskKey;

    @ApiModelProperty(value = "申请编号")
    private String applyCode;

    @ApiModelProperty(value = "暂停开始日期")
    private LocalDateTime suspendedStartTime;

    @ApiModelProperty(value = "暂停结束日期")
    private LocalDateTime suspendedEndTime;

    @ApiModelProperty(value = "申请时间")
    private LocalDateTime applyTime;

    @ApiModelProperty(value = "最后处理时间")
    private LocalDateTime lastedDealTime;

    @ApiModelProperty(value = "附件")
    private List<File> files;

    @ApiModelProperty(value = "流程")
    private List<ProcessTask> processTask;
}
